From 0045699db6d9c46daac91bae14bb44da7bdfde57 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Thu, 3 Aug 2006 22:05:07 +0000 Subject: [PATCH] (w32_menu_show, w32_dialog_show): Call Fsignal to quit when no option selected except when for_click. --- src/w32menu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/w32menu.c b/src/w32menu.c index 389e6c5b856..11af1d66b6f 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -1994,6 +1994,9 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error) } } } + else if (!for_click) + /* Make "Cancel" equivalent to C-g. */ + Fsignal (Qquit, Qnil); return Qnil; } @@ -2186,6 +2189,9 @@ w32_dialog_show (f, keymaps, title, header, error) } } } + else + /* Make "Cancel" equivalent to C-g. */ + Fsignal (Qquit, Qnil); return Qnil; } -- 2.30.2